package com.yykj.im.center.client.form.consultation;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SystemNoticeConditionForm {

    @NotEmpty(message = "消息标题不能为空")
    @ApiModelProperty(value = "消息标题", required = true)
    public String title;

    @NotEmpty(message = "消息内容不能为空")
    @ApiModelProperty(value = "消息内容", required = true)
    public String content;

    @ApiModelProperty(value = "链接地址,点击可跳转H5页面")
    public String url;

    @ApiModelProperty(value = "备注")
    public String remark;

    @ApiModelProperty("定时发送日期,yyyy-MM-dd HH:mm:ss,为空表示 立即发送")
    private String sendTime;

    @ApiModelProperty("性别,0:全部,1:男,2:女")
    private int gender;

    @ApiModelProperty("医院ID")
    @Min(value = 1, message = "医院ID不能为空")
    private int hospitalId;

    @ApiModelProperty("部门ID")
    private int departmentId;

    @ApiModelProperty(value = "所选用户", required = true)
    @NotEmpty(message = "所选用户不能为空")
    List<UserInfoForm> users;
}
